import { Routes } from '@angular/router';
import { DetailsComponent} from "./details/details.component";
import {HomeComponent} from "./home/home.component";
import {WeaponsComponent} from "./weapons/weapons.component";
import {HeroSummaryComponent} from "./hero-summary/hero-summary.component";

export const routes: Routes = [
  {
    path: 'home',
    component: HomeComponent,
    title: 'Home',
    children: [
      {
        path: 'summary/:id',
        component: HeroSummaryComponent,
        title: '英雄简介'
      }
    ]
  },
  {
    path: 'details',
    component: DetailsComponent,
    title: 'Home details'
  },
  {
    path: 'weapons',
    component: WeaponsComponent,
    title: 'Weapons'
  },
/*  {
    path: "**",
    component: HomeComponent,
    title: "Home"
  }*/
];
